package cn.zuo.utils;

import cn.zuo.view.ChatJFrame;

import java.util.HashMap;
/**
 * @Author 白白旧维
 * @Date 2021/7/7 11:13
 */
public class ChatPool {

    private static HashMap<String, ChatJFrame> map = new HashMap<>();

    public static void setChat(String key,ChatJFrame chat){
        map.put(key,chat);
    }

    public static ChatJFrame getChat(String key){
        return map.get(key);
    }

    public static void removeChat(String key){
        map.remove(key);
    }


}
